{% load i18n %}
<script>
    function copy_data(copy_id) {
        //alert("copy " + copy_id);
        var copyText = document.getElementById(copy_id);
        copyText.select();
        document.execCommand("Copy");
        msg = "<h4 class=\"red\">" + "{% trans '复制成功' %}" + "</h4>"
        msg_tips(msg, 3000);
    }
</script>
<script id="temp_deposit" type="text/html">
    <div class="col-sm-12 alert alert-dismissible" style="background-color:#F1F1F1F1" role="alert">
        <div class="col-sm-6">
            <% var copy_id = "address_" + info.coin_type %>
            <% address = info.address %>
            <% var address_len = 40 + 2 %>

            <span class="f-fl" >充值地址:<input type="text" readonly="readonly" value="<%=address%>" size="<%=address_len%>" id=<%=copy_id%>>
                <button type="button" onclick="copy_data('<%=copy_id%>')"><i class="fa fa-copy"></i>{% trans '复制' %}</button>
                </p>
            </span>

            <span class="f-fl">
            {% trans '扫描二维码复制充值地址'%}
            <img width="100px" height="100px" SRC="data:image/gif;base64,<%=info.base64_img%>"/>
            </span>
        </div>
        <div class="col-sm-6">
            <div class="f-left">
                <b class="red"><%=info.coin_type%></b> {% trans '充值说明:' %}<br>
                {% trans '1. 充值是自动的，' %}<%=info.coin_type%> {% trans '转账需要整个' %} <%=info.coin_type%> {% trans '网络进行确认.达到' %}<b class="red"> <%=info.confirm%></b> {% trans '个确认后您的' %} <%=info.coin_type%> {% trans '会自动充值到您的账户中。' %}<br>
                {% trans '2. 此地址是您唯一且独自使用的转入地址，您可以同时进行多次充值。' %}<br>
            </div>
        </div>
    </div>
</script>
